<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <title>首页</title>
</head>

<body>
<div>
    <span>个人姓名：</span><input id="name" name="name" type="text"/>
    <button type="button" id="step_one">提交申请</button>
</div>
</body>
<script src="../js/jquery.min.js"></script>
<script>
    $(function () {
//        var code = $("#code").val();

        $('#step_one').click(function () {
            $.ajax({
                type: "post",
                url: "step_one.json",
                dataType: "json",
//                data: {code:  $("#code").val(),smsCode:$("#smsCode").val()}
                success: function(json){
                    alert(json.app_key);
                },
                error: function(){
                    alert('fail');
                }
            });
        });
    });
</script>
</html>
